package top.zhimingw.redis;

/**
 * @Author:zhimingw
 * @Version 1.0
 * @since 2021/6/8 10:46
 */
public abstract class BasePrefix implements KeyPrefix{
    private String prefix;

    public BasePrefix(String prefix){
        this.prefix = prefix;
    }

    @Override
    public String getPrefix() {
        String className = getClass().getSimpleName();
        return className+":"+prefix;
    }
}
